﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace 计科2111林开心06
{
    public partial class _3_10 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            DateTime da = new DateTime();
            if (TextBox2.Text.Count() > 2 && TextBox2.Text.Count() < 4)
            {

            }
            else Label10.Text = "输入2-4个汉字";
            if (DropDownList1.SelectedValue != "")
            {

            }
            else Label17.Text = "选择国籍";
            if (TextBox3.Text == TextBox4.Text)
            {

            }
            else Label12.Text = "密码不一致";
            if (int.Parse(TextBox5.Text) > 18 && int.Parse(TextBox5.Text) < 60)
            {
                

            }
            else Label13.Text = "年龄应该在18-60";
            if (DateTime.TryParse(TextBox6.Text, out da))
            {

            }
            else Label14.Text = "日期格式不对";
            if (TextBox8.Text.Count() > 8)
            {

            }
            else Label16.Text = "输入大于8个字";
            if (TextBox1.Text != "")
            {

            }
            else Label9.Text = "不能为空";
        }
    }
}